package com.learn.springboot3.socket;

import jakarta.websocket.OnOpen;
import jakarta.websocket.Session;
import jakarta.websocket.server.ServerEndpoint;
import org.springframework.stereotype.Component;

/**
 * ClassName: TestWebSocket
 * Package: com.learn.springboot3.socket
 * Description:
 *
 * @Author jiangcheng
 * @Create 2024/9/13 17:18
 * @Version 1.0
 */

@ServerEndpoint("/test")
@Component
public class TestWebSocket {

    @OnOpen
    public void onOpen(Session session) {
        System.out.println("onOpen");
    }

}
